{include file="../blog/admin/view/public/header.tpl"}

<div class="col-sm-offset-3 col-sm-6">
<form class="form-signin" method="post" kyo-ajax role="form">
<h2 class="form-signin-heading">登录系统</h2>
<input type="text" name="username" class="form-control margin-bottom-10" placeholder="用户名" required autofocus>
<input type="password" name="password" class="form-control margin-bottom-10" placeholder="密码" required>
<input type="text" name="captcha" class="form-control margin-bottom-10" placeholder="验证码" required>
<div class="captcha margin-bottom-10 col-sm-8">{:captcha_img()}</div>
<div class="checkbox col-sm-4">
    <input type="checkbox" name="remember" value="1">&emsp;记住登录
    <div class="margin-top-10"><a href="{:url('Pub/forget')}">忘记密码?</a></div>
</div>
<button class="btn btn-lg btn-primary btn-block margin-top-10" type="submit">登录</button>
</form>
<div>

{include file="../blog/admin/view/public/footer.tpl"}

<script>
    function ref_captcha() {
        var img = $('.captcha').children('img');
        img.attr('src', img.attr('src') + "?"+Math.random());
    }

    $('.captcha').children('img').click(ref_captcha);

</script>
